package com.zoe.app.context;

import com.zoe.app.domain.Order;
import com.zoe.app.selectors.IFilterSelector;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author zbg
 * @date 2023/06/06
 * @description
 */
@Getter
@Setter
@Accessors(chain = true)
public class OrderContext extends AbsContext {
    private Order order;

    public OrderContext(IFilterSelector filterSelector) {
        super(filterSelector);
    }

    @Override
    public boolean continueChain() {
        return order.getBigDecimal() > 70;
    }
}
